<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>
</head>

<body>
    <!-- view -->
    <div id="root">
        <h1>学校名称：{{school.name}}</h1>
        <h1>学校地址：{{school.address}}</h1>
    </div>
    <!-- view -->
    <script>
        // viewModel
        const vm = new Vue({
            el: "#root",
            // model
            data() {
                return {
                    school: {
                        name: "大肥羊学校",
                        address: "青青草原"
                    }
                }
            },
            // model
        })
        // viewModel
        console.log(vm);
    </script>

</body>

</html>